package cn.kin.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ClassMapper {
	
	//根据id删除班级
    int deleteByPrimaryKey(Integer id);
    
    //修改班级
    int updateById(cn.kin.pojo.Class classroom);
    
    //添加班级
    int insertClass(cn.kin.pojo.Class classroom);
    
    //查询所有班级
    List<cn.kin.pojo.Class> selectAll();
    
    //升班，根据年级修改年级
    int updateGrageByGrade(@Param("oldGrage")String oldGrage,@Param("newGrage")String newGrage);
}